package com.black.app.service.exercise;

import com.black.app.domain.exercise.AppExerciseType;
import com.baomidou.mybatisplus.extension.service.IService;
import com.black.app.domain.req.exercise.type.ExerciseTypeAddReq;
import com.black.app.domain.req.exercise.type.ExerciseTypeEditReq;
import com.black.app.domain.resp.exercise.AppExecrciseTypeInfoResp;
import com.black.app.domain.resp.exercise.AppExerciseTreeResp;
import com.black.app.domain.resp.exercise.AppTypeTreeResp;

import java.util.List;

/**
 * @author L
 * @description 针对表【app_exercise_type(锻炼大分类)】的数据库操作Service
 * @createDate 2024-10-23 16:57:08
 */
public interface AppExerciseTypeService extends IService<AppExerciseType> {

    /**
     * 获取所有类型树
     *
     * @return
     */
    List<AppTypeTreeResp> allTypeTree();

    /**
     * 获取首页锻炼类型树
     * @return
     */
    List<AppExerciseTreeResp> homeExerciseTree();


    /**
     * 后台搜索表格树
     * @return
     */
    List<AppExerciseTreeResp> backSearchTableTree();

    /**
     * 新增
     * @param req
     * @return
     */
    boolean add(ExerciseTypeAddReq req);

    /**
     * 修改查询详情
     * @param id
     * @return
     */
    AppExecrciseTypeInfoResp searchById(Long id);

    /**
     * 修改锻炼类型
     * @param req
     * @return
     */
    boolean edit(ExerciseTypeEditReq req);

    /**
     * 根据id查询类型
     * @param sId
     * @return
     */
    AppExerciseType findById(Long sId);
}
